//Package public  给视频添加字幕，帮助学习英语。
package public

/**
1  youtube-dl 双语字幕

方法1 http://www.357global.com/archives/578.html
1.1 下载中英字幕
youtube-dl --write-auto-sub --sub-lang en,zh-Hans --convert-subtitles srt -f bestvideo+bestaudio https://www.youtube.com/watch?v=NGtt7GJ1uiM

1.2 合成字幕
cat 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.en.srt' 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.zh-Hans.srt' >2.srt

1.3 添加中英字幕
ffmpeg -i 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.mkv'  -i '2.srt'  -c copy -c:s copy -disposition:s:0 default en.mkv


//如果只想学英语
ffmpeg -i 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.mkv'  -i 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.en.srt'  -c copy -c:s copy -disposition:s:0 default en.mkv
//如果只想看中文
ffmpeg -i 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.mkv' -i 'Can you solve the egg drop riddle - Yossi Elran-NGtt7GJ1uiM.zh-Hans.srt' -c copy -c:s copy -disposition:s:0 default 5.mkv


**/
